<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:form>
        <h:outputLabel value="email : "/>
        <p:inputText value="#{mbComptes.utilisateur.email}" />
        <h:outputLabel value="mot de passe : "/>
        <h:inputSecret value="#{mbComptes.utilisateur.password}" />
        <h:commandButton action="#{mbComptes.connexion()}" value="Connexion"/>
    </h:form>
    <span>
        <h:form style="display: inline">
            <p:commandLink ajax="false" value="Créer un compte"
                           actionListener="#{mbSiteProperties.setPageCentrale('includes/creationCompte.xhtml')}" />
        </h:form>
        -
        <h:form style="display: inline">
            
            <p:commandLink ajax="false" 
                           value="Consulter mon panier" 
                           actionListener="#{mbSiteProperties.setPageCentrale('includes/panier.xhtml')}" 
                           rendered="#{mbPanier.panier.vide==false}"/>
        </h:form>
    </span>
</html>